import axios from "axios";

const send = async (id, amount) => {
  try {
    const response = await axios.post(
      process.env.url_server + "/api/user/refill",
      {
        telegramId: id,
        amount: amount,
      }
    );
    return response.data;
  } catch (err) {
    alert(err);
  }
};

export default {
  send,
};
